#ifndef RECENTMODEL_H
#define RECENTMODEL_H

#include <QObject>
#include <QStandardItemModel>

class RecentModel : public QStandardItemModel
{
    Q_OBJECT
    Q_ENUMS(Roles)
public:

    enum Roles {
        FileNameRole = Qt::UserRole + 100,
        FilePathRole
    };

    explicit RecentModel(QObject *parent = 0);
    virtual ~RecentModel();
    void updateList();

    virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;

private slots:
    void slotValueChanged(const QString &name);
};

#endif // RECENTMODEL_H
